﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Single.Npoi
{
    public class NpoiSetValueCell
    {
        public int Index { get; set; }

        public string Type { get; set; }

        public object? Value { get; set; }

        public double DoubleValue
        {
            get
            {
                double value = 0;

                double.TryParse(Value?.ToString(), out value);

                return value;
            }
        }

        public string StringValue
        {
            get { return Value?.ToString() ?? string.Empty; }
        }
    }
}